﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="CityUpdate.aspx.cs" Inherits="Pages_City_UpdateCity" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style type="text/css">
        .style1
        {
            width: 100%;
        }
        .style2
        {
            width: 149px;
        }
    </style>

</head>
<body onunload="<script language='javascript'> alert('Ocorreu um erro ao deletar a cidade: <br>.');</script>" >
    <form id="form1" runat="server">
    <div>
    
        <table class="style1">
            <tr>
                <td colspan="2">
                    <asp:HyperLink ID="hlGoBack" runat="server" 
                        NavigateUrl="~/Pages/CityMain.aspx">Voltar</asp:HyperLink>
                    <br />
                    <asp:ValidationSummary ID="vsCity" runat="server" />
                </td>
            </tr>
            <tr>
                <td class="style2">
                    <asp:Label ID="Label1" runat="server" Text="Cidade"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txbCity" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvCity" runat="server" 
                        ControlToValidate="txbCity" ErrorMessage="Preencha o nome da Cidade.">*</asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="style2">
                    <asp:Label ID="Label2" runat="server" Text="Estado"></asp:Label>
                </td>
                <td>
                    <asp:DropDownList ID="ddlState" runat="server">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class="style2">
                    &nbsp;</td>
                <td>
                    <asp:Button ID="btnSave" runat="server" Text="Salvar" onclick="btnSave_Click" />
                </td>
            </tr>
            <tr>
                <td class="style2">
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
        </table>
    
    </div>
    </form>
</body>
</html>
